/**
 * Created by DevilsEyes on 2016/2/13.
 * ==========================
 *         文件 File
 * ==========================
 * 用于存放文件的数据结构
 *
 */
'use strict';
var db = require('./db.js').mongoose;
var Schema = db.Schema;

var homework_Schema = new Schema({

    title: String,//标题
    class: String,//班级范围 A#B#C
    description: String,//描述，支持换行
    overtime: Number,//截止时间
    files: [String]//文件列表 JSON字符串

});

var homework_Model = db.model("homework", homework_Schema);
module.exports = homework_Model;